home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / xmsif15.zip / EXMAKEMS < prev    next >
Text File  |  1991-12-08  |  5KB  |  149 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR XMSTEST TESTER/EXAMPLE PROGRAM FOR XMSIF
  3. # MICROSOFT C
  4. # 12/08/91
  5. #
  6. #   This is an example makefile for Microsoft C, to make the XMSTEST tester/
  7. # example program in any of the six supported memory models. It is compatible
  8. # with the NMAKE utility provided with the compiler. As supplied, it is set
  9. # up for Microsoft C 6.00A. To reconfigure for earlier compilers, two changes
  10. # may be required. First, check if your version of the compiler has the
  11. # library functions _fmemcmp() and _fmemset(). If it does not, add "/DNO_FFUNC"
  12. # to the line that begins "CFLAGS". Second, check if your version of the
  13. # compiler supports in-line assembly code. If it does, no changes should be
  14. # necessary. If it does not, or you do not wish to use the in-line assembly
  15. # code (even though it improves execution speed significantly), simply remove
  16. # "/DINLINE_ASM" from the line that begins "CFLAGS".
  17. #
  18. #   Before using this makefile, make sure that the Microsoft NMAKE utility
  19. # and the appropriate command-line compiler and linker are in your path,
  20. # and that the necessary environment variables (INCLUDE and LIB) are set
  21. # appropriately. The four source files (XMSTEST.C, XMSTEST2.C, XMSTEST3.C,
  22. # and TESTUTIL.C), the header files (XMSTEST.H, TESTUTIL.H, and XMSIF.H), and
  23. # the appropriate library or libraries (XMSIF*.LIB) should all be in the
  24. # current directory.
  25. #
  26. #    To use the makefile, type "nmake /f exmakems target", where 'target' is
  27. # one or more of tiny, small, medium, compact, large, or huge separated by
  28. # spaces. For example, "nmake /f exmakems tiny" would make the tiny-model
  29. # example and "nmake /f exmakems small large" would make the small- and
  30. # large-model examples. "nmake /f exmakems" will make the test programs
  31. # for all memory models.
  32. #
  33.  
  34.  
  35. CC    =cl
  36. CFLAGS    = /c /DINLINE_ASM
  37.  
  38. LINK    = link
  39. LF    =
  40.  
  41.  
  42. all:        tiny small medium compact large huge
  43.  
  44. tiny:        txmstest
  45.  
  46. small:        sxmstest
  47.  
  48. medium:        mxmstest
  49.  
  50. compact:    cxmstest
  51.  
  52. large:        lxmstest
  53.  
  54. huge:        hxmstest
  55.  
  56.  
  57. txmstest.obj:    xmstest.c xmstest.h testutil.h
  58.     $(CC) $(CFLAGS) /AT /Fo$@ xmstest.c
  59.  
  60. sxmstest.obj:    xmstest.c xmstest.h testutil.h
  61.     $(CC) $(CFLAGS) /AS /Fo$@ xmstest.c
  62.  
  63. mxmstest.obj:    xmstest.c xmstest.h testutil.h
  64.     $(CC) $(CFLAGS) /AM /Fo$@ xmstest.c
  65.  
  66. cxmstest.obj:    xmstest.c xmstest.h testutil.h
  67.     $(CC) $(CFLAGS) /AC /Fo$@ xmstest.c
  68.  
  69. lxmstest.obj:    xmstest.c xmstest.h testutil.h
  70.     $(CC) $(CFLAGS) /AL /Fo$@ xmstest.c
  71.  
  72. hxmstest.obj:    xmstest.c xmstest.h testutil.h
  73.     $(CC) $(CFLAGS) /AH /Fo$@ xmstest.c
  74.  
  75. txmstst2.obj:    xmstest2.c xmstest.h testutil.h
  76.     $(CC) $(CFLAGS) /AT /Fo$@ xmstest2.c
  77.  
  78. sxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  79.     $(CC) $(CFLAGS) /AS /Fo$@ xmstest2.c
  80.  
  81. mxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  82.     $(CC) $(CFLAGS) /AM /Fo$@ xmstest2.c
  83.  
  84. cxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  85.     $(CC) $(CFLAGS) /AC /Fo$@ xmstest2.c
  86.  
  87. lxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  88.     $(CC) $(CFLAGS) /AL /Fo$@ xmstest2.c
  89.  
  90. hxmstst2.obj:    xmstest2.c xmstest.h testutil.h
  91.     $(CC) $(CFLAGS) /AH /Fo$@ xmstest2.c
  92.  
  93. txmstst3.obj:    xmstest3.c xmstest.h testutil.h
  94.     $(CC) $(CFLAGS) /AT /Fo$@ xmstest3.c
  95.  
  96. sxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  97.     $(CC) $(CFLAGS) /AS /Fo$@ xmstest3.c
  98.  
  99. mxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  100.     $(CC) $(CFLAGS) /AM /Fo$@ xmstest3.c
  101.  
  102. cxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  103.     $(CC) $(CFLAGS) /AC /Fo$@ xmstest3.c
  104.  
  105. lxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  106.     $(CC) $(CFLAGS) /AL /Fo$@ xmstest3.c
  107.  
  108. hxmstst3.obj:    xmstest3.c xmstest.h testutil.h
  109.     $(CC) $(CFLAGS) /AH /Fo$@ xmstest3.c
  110.  
  111. ttstutil.obj:    testutil.c testutil.h
  112.     $(CC) $(CFLAGS) /AT /Fo$@ testutil.c
  113.  
  114. ststutil.obj:    testutil.c testutil.h
  115.     $(CC) $(CFLAGS) /AS /Fo$@ testutil.c
  116.  
  117. mtstutil.obj:    testutil.c testutil.h
  118.     $(CC) $(CFLAGS) /AM /Fo$@ testutil.c
  119.  
  120. ctstutil.obj:    testutil.c testutil.h
  121.     $(CC) $(CFLAGS) /AC /Fo$@ testutil.c
  122.  
  123. ltstutil.obj:    testutil.c testutil.h
  124.     $(CC) $(CFLAGS) /AL /Fo$@ testutil.c
  125.  
  126. htstutil.obj:    testutil.c testutil.h
  127.     $(CC) $(CFLAGS) /AH /Fo$@ testutil.c
  128.  
  129.  
  130. txmstest:    txmstest.obj txmstst2.obj txmstst3.obj ttstutil.obj xmsifs.lib
  131.     $(LINK) $(LF) /ST:0x800 txmstest txmstst2 txmstst3 ttstutil, \
  132.             txmstest, , xmsifs ;
  133.  
  134. sxmstest:    sxmstest.obj sxmstst2.obj sxmstst3.obj ststutil.obj xmsifs.lib
  135.     $(LINK) $(LF) sxmstest sxmstst2 sxmstst3 ststutil, sxmstest, , xmsifs ;
  136.  
  137. mxmstest:    mxmstest.obj mxmstst2.obj mxmstst3.obj mtstutil.obj xmsifm.lib
  138.     $(LINK) $(LF) mxmstest mxmstst2 mxmstst3 mtstutil, mxmstest, , xmsifm ;
  139.  
  140. cxmstest:    cxmstest.obj cxmstst2.obj cxmstst3.obj ctstutil.obj xmsifc.lib
  141.     $(LINK) $(LF) cxmstest cxmstst2 cxmstst3 ctstutil, cxmstest, , xmsifc ;
  142.  
  143. lxmstest:    lxmstest.obj lxmstst2.obj lxmstst3.obj ltstutil.obj xmsifl.lib
  144.     $(LINK) $(LF) lxmstest lxmstst2 lxmstst3 ltstutil, lxmstest, , xmsifl ;
  145.  
  146. hxmstest:    hxmstest.obj hxmstst2.obj hxmstst3.obj htstutil.obj xmsifh.lib
  147.     $(LINK) $(LF) hxmstest hxmstst2 hxmstst3 htstutil, hxmstest, , xmsifh ;
  148.  
  149.